import sys
from PyQt4 import QtGui, QtCore

class MainWindow(QtGui.QMainWindow):
    def __init__(self, parent=None):
        QtGui.QMainWindow.__init__(self, parent)
        #Set window size
        self.setGeometry(300, 150, 750, 450)
        #Set window size
        self.setWindowTitle('MainWindow')
        #Set window icon
        self.setWindowIcon(QtGui.QIcon('../Icons/Globe.png'))
        #Add menu bar
        menuBar = self.menuBar()
        file = menuBar.addMenu('&File')
        exit = QtGui.QAction(QtGui.QIcon('../Icons/Standby.png'), 'Exit', self)
        exit.setShortcut('Ctrl+Q')
        exit.setStatusTip('Exit application')
        self.connect(exit, QtCore.SIGNAL('triggered()'), QtCore.SLOT('close()'))
        file.addAction(exit)
        #Add tool bar
        self.toolbar = self.addToolBar('Exit')
        self.toolbar.addAction(exit)
        #Show status bar
        self.statusBar()